{% extends "base.html" %}
{% load staticfiles %}
{% block title %}Log Analyzer : Sites{% endblock %}

{% block page_header %} Sites {% endblock %}

{% block content %}
	<ul class="breadcrumb">
 	     <li><a href="/django_logs">Home</a> <span class="divider">/</span></li>
	     <li class="/django_logs/sites"> Sites</li>
        </ul>
	{% if allsites %}
	  <ul class="thumbnails">
	    {% for site in allsites %}
		<li class="span4"> 
			<div class="thumbnail"> 
			        <img alt="300x200" style="width: 300px; height: 200px;" src="{% static "django_logs/server.jpg" %}"/>
				<div class="caption">
					<a href="/django_logs/sitedetails/{{site.id}}"> {{site.name}} </a>
				</div>
			</div>
		</li>
	    {% endfor %}
	  </ul>
	{% else %}
	    <p>No logs are available.</p>
	{% endif %}
{% endblock %}
